package uk.ac.cam.juliet.zedcat.socialnetworking.plugin;

import uk.ac.cam.juliet.zedcat.db.Account;
import uk.ac.cam.juliet.zedcat.socialnetworking.AbstractPlugin;

public class FacebookPlugin extends AbstractPlugin {

	
	public FacebookPlugin(Account acc) {
		super(acc.getAccountID(), acc.getUsername(), acc.getPassword());
	}

	public void pushUpdate(String update) {
		FacebookThread t = new FacebookThread(update);
		t.start();
	}
	
	
	public class FacebookThread extends Thread {
		String message;
		
		public FacebookThread(String message) {
			this.message = message;
		}
		
		public void run() {
			// System.out.println("AccountID: " + accountid + " - Type: Twitter - Pushing update to facebook API.");
			// TODO
			// System.out.println("AccountID: " + accountid + " - Type: Facebook - Message sent!");
			System.err.println("Not implemented");
		}
	}
}
